package com.lqwu.manymanythumb.unitl;

import com.lqwu.manymanythumb.constant.ThumbConstant;

/**
 * 生成 Redis Key工具类
 */
public class RedisKeyUtil {
    /**
     * 获取用户点赞记录 key
     * @param userId
     * @return
     */
    public static String getUserThumbKey(Long userId) {  
        return ThumbConstant.USER_THUMB_KEY_PREFIX + userId;
    }  
  
    /**  
     * 获取 临时点赞记录 key  
     */  
    public static String getTempThumbKey(String time) {  
        return ThumbConstant.TEMP_THUMB_KEY_PREFIX.formatted(time);  
    }  
  
}
